package com.ruoyi.myweb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.myweb.mapper.CinemaListMapper;
import com.ruoyi.myweb.domain.CinemaList;
import com.ruoyi.myweb.service.ICinemaListService;

/**
 * 电影管理Service业务层处理
 * 
 * @author zyh
 * @date 2024-05-21
 */
@Service
public class CinemaListServiceImpl implements ICinemaListService 
{
    @Autowired
    private CinemaListMapper cinemaListMapper;

    /**
     * 查询电影管理
     * 
     * @param cinemaId 电影管理主键
     * @return 电影管理
     */
    @Override
    public CinemaList selectCinemaListByCinemaId(Long cinemaId)
    {
        return cinemaListMapper.selectCinemaListByCinemaId(cinemaId);
    }

    /**
     * 查询电影管理列表
     * 
     * @param cinemaList 电影管理
     * @return 电影管理
     */
    @Override
    public List<CinemaList> selectCinemaListList(CinemaList cinemaList)
    {
        return cinemaListMapper.selectCinemaListList(cinemaList);
    }

    /**
     * 新增电影管理
     * 
     * @param cinemaList 电影管理
     * @return 结果
     */
    @Override
    public int insertCinemaList(CinemaList cinemaList)
    {
        return cinemaListMapper.insertCinemaList(cinemaList);
    }

    /**
     * 修改电影管理
     * 
     * @param cinemaList 电影管理
     * @return 结果
     */
    @Override
    public int updateCinemaList(CinemaList cinemaList)
    {
        return cinemaListMapper.updateCinemaList(cinemaList);
    }

    /**
     * 批量删除电影管理
     * 
     * @param cinemaIds 需要删除的电影管理主键
     * @return 结果
     */
    @Override
    public int deleteCinemaListByCinemaIds(Long[] cinemaIds)
    {
        return cinemaListMapper.deleteCinemaListByCinemaIds(cinemaIds);
    }

    /**
     * 删除电影管理信息
     * 
     * @param cinemaId 电影管理主键
     * @return 结果
     */
    @Override
    public int deleteCinemaListByCinemaId(Long cinemaId)
    {
        return cinemaListMapper.deleteCinemaListByCinemaId(cinemaId);
    }
}
